<template>
	<view>
		<uni-nav-bar 
		statusBar="true" 
		:fixed="true" 
		:border="false"
		 :leftIcons="true"
		backgroundColor="#1D7DFF"
		leftIcon="back"
		@click-left="back"
		color="#ffffff">
			<view class="index-top-nav-title">
				<view class="">{{info.title}}</view>
			</view>
		</uni-nav-bar>
		<view class="fund-live-title">
			<view class="fund-live-title-bottom">
				<view class="fund-live-title-bottom-item">
					<text>{{i18n.I_have_deposited}}（{{info.coin}}）</text>
					<view>0</view>
				</view>
				<view class="fund-live-title-bottom-item">
					<text>{{i18n.day_rate}}</text>
					<view>{{info.sl}}</view>
				</view>
				<view class="fund-live-title-bottom-item">
					<text>{{i18n.Principal_and_interest_due}}（{{info.coin}}）</text>
					<view>0</view>
				</view>
			</view>
		</view>

		<view class="fund-regular-content">
			<view class="fund-regular-content-title">{{i18n.see_details}}</view>
			
			<view class="fund-ragular-content-item">
				<!-- <view class="fund-ragular-content-item-content">
					<view class="fund-ragular-content-item-title-l">
						募集开始时间
					</view>
					<view class="fund-ragular-content-item-title-r">
						2020.01.01 20:00
					</view>
				</view>
				<view class="fund-ragular-content-item-content">
					<view class="fund-ragular-content-item-title-l">
						募集结束时间 
					</view>
					<view class="fund-ragular-content-item-title-r">
						2020.01.01 20:00
					</view>
				</view> -->
				<view class="fund-ragular-content-item-content">
					<view class="fund-ragular-content-item-title-l">
						{{i18n.Raised_number}}
					</view>
					<view class="fund-ragular-content-item-title-r">
						100 {{info.coin}}
					</view>
				</view>
				<view class="fund-ragular-content-item-content">
					<view class="fund-ragular-content-item-title-l">
						{{i18n.Closed_period}}
					</view>
					<view class="fund-ragular-content-item-title-r">
						{{info.day}}{{i18n.day}}
					</view>
				</view>
			<!-- 	<view class="fund-ragular-content-item-content">
					<view class="fund-ragular-content-item-title-l">
						收益发放时间
					</view>
					<view class="fund-ragular-content-item-title-r">
						计息结束后48小时内
					</view>
				</view> -->
			</view>
			
		</view>
		
		<load v-if="showLoad"></load>
	</view>
</template>

<script>
	import Toast from '@/components/toast/toast.vue';
	import uniNavBar from '@/components/uni-nav-bar/uni-nav-bar.vue';
	import Load from '../../components/common/load.vue';
	import {fetch, _updataTabBar, showToast, pageto, forceUpdate} from '@/common/js/util.js';
	import {mapGetters, mapMutations} from 'vuex' 
	export default {
		data() {
			return {
				showLoad:false,
				info:{}
			}
		},
		onShow() {
			console.log(JSON.parse(this.getPackages));
			this.info = JSON.parse(this.getPackages)
		},
		computed:{
			i18n() {
				return this.$t('message');
			},
			...mapGetters([
				'getRequestUrl',
				"getLoginInfo",
				'getTextArr',
				'getLangType',
				'getLang',
				'getPackages'
			])
		},
		components:{
			Toast,uniNavBar,Load
		},
		methods:{
			back(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
	
</script>

<style lang="scss" scoped>
	.index-top-nav-title{
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 30upx;
		view{
			font-size:36upx;
			font-weight: bold;
		}
		text{
			font-size:56upx;
			font-weight: 100;
		}
	}
	.fund-live-title{
		background-color: #1D7DFF;
		color: #FFFFFF;
		padding: 10upx 0 74upx 0;
		position: relative;
		.fund-live-title-top{
			text-align: center;
			font-size: 24upx;
			display: flex;
			justify-content: center;
			align-items: center;
			view{
				display: flex;
				margin-left: 12upx;
				justify-content: space-between;
				align-items: center;
				border: 2upx solid #FFFFFF;
				padding: 8upx 30upx 8upx 8upx;
				font-size: 24upx;
				width: 120upx;
				text{
					font-size: 26upx;
					font-weight: 100;
					color: #FFFFFF;
				}
			}
		}
		.fund-live-title-center{
			font-size: 60upx;
			font-weight: bold;
			text-align: center;
			padding:46upx 0 56upx 0;
		}
		.fund-live-title-bottom{
			background-color: #FFFFFF;
			border-radius: 10upx;
			position: absolute;
			width: 690upx;
			left: 50%;
			transform: translate(-50%,50%);
			bottom: 0;
			display: flex;
			align-items: center;
			margin-bottom: -20upx;
			padding: 54upx 0;
			box-shadow: 2upx 2upx 10upx #e3e3e3;
			.fund-live-title-bottom-item{
				color: #282828;
				flex: 1;
				text-align: center;
				text{
					font-size: 24upx;
				}
				view{
					font-size: 44upx;
					font-weight: bold;
				}
			}
		}
	}
	.fund-regular-content{
		border-top: 160upx solid #f0f0f0;
		.fund-regular-content-title{
			line-height: 104upx;
			padding-left: 30upx;
			border-bottom: 1upx solid #d3d3d3;
			font-weight: bold;
		}
		.fund-ragular-content-item{
			// border-bottom: 1upx solid #d3d3d3;
			.fund-ragular-content-item-content{
				display: flex;
				justify-content: space-between;
				padding: 40upx 30upx;
				align-items: center;
				font-size: 28upx;
				border-bottom: 1upx solid #d3d3d3;
				.fund-ragular-content-item-title-l{
					color: #797979;
				}
				.fund-ragular-content-item-title-r{
					text-align: right;
				}
			}
		}
	}
</style>